﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Prism.Mvvm;

namespace DailyApp.WPF.Models
{
    /// <summary>
    /// 首页统计面板信息
    /// </summary>
    internal class StatPanelInfo:BindableBase
    {
        /// <summary>
        /// 统计项图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 统计项名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 统计结果
        /// </summary>
        private string _Result;
        public string Result
        {
            get { return _Result; }
            set { 
                _Result = value;
                RaisePropertyChanged();//后台要通知视图
            }
        }
        //public string Result { get; set; }

        /// <summary>
        /// 背景颜色
        /// </summary>
        public string BackColor { get; set; }

        /// <summary>
        /// 点击 跳转到 界面名称
        /// </summary>
        public string ViewName { get; set; }
  
        /// <summary>
        /// 面板里手的形状
        /// </summary>
        public string Hand {
            get {
                if (ItemName == "完成比例")
                {
                    return "";
                }
                else
                {
                    return "Hand";
                }
            } 
        }
    }
}
